<%@ Register TagPrefix="forumsAdmin" TagName="Footer" Src="footer.ascx" %>
<%@ Register TagPrefix="forumsAdmin" TagName="Header" Src="header.ascx" %>
<%@ Register TagPrefix="Forums" Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>
<%@ Register TagPrefix="Components" Namespace="AspNetForums.Components" Assembly="AspNetForums.Components" %>
<%@ Page Language="c#" debug="true" CodeBehind="ManageSmilies.aspx.cs" AutoEventWireup="false" Inherits="AspNetForums.Admin.ManageSmilies" %>
<forumsAdmin:Header runat="server" id="Header1" />
		<form runat="server" ID="formManageSmiley">
			<span class="forumName"><% = ResourceManager.GetString("Smiley_Title")%></span>
			<br>
			<span class="forumThread"><% = ResourceManager.GetString("Smiley_SubTitle")%></span>
			<p>
				<asp:DataList id="dlManageSmilies" runat="server" Width="100%" Height="100%">
					<HeaderTemplate>
						<TABLE id="tblManageSmilies" class="tableBorder" cellSpacing="1" cellPadding="3" width="100%" border="0">
							<TR>
								<TD class="column" width="75px"><% = ResourceManager.GetString("ID")%></TD>
								<TD class="column" width="100px"><% = ResourceManager.GetString("Smiley_Code")%></TD>
								<TD class="column" width="100%"><% = ResourceManager.GetString("Url")%></TD>
								<td class="column" width="100px"><% = ResourceManager.GetString("Image")%></td>
								<td class="column" width="100px"><% = ResourceManager.GetString("Description")%></td>
								<td class="column" width="140px" nowrap="true"><% = ResourceManager.GetString("Actions")%></td>
							</TR>
					</HeaderTemplate>
					<FooterTemplate>
						<tr>
							<TD class="f" >Id</TD>
							<TD class="fh">
								<asp:TextBox Runat="server" ID="txtNewSmileyCode"></asp:TextBox></TD>
							<TD class="fh">
								<asp:TextBox Runat="server" ID="txtNewSmileyUrl"></asp:TextBox></TD>
							<td class="fh"></td>
							<td class="fh">
								<asp:TextBox Runat="server" ID="txtNewSmileyText"></asp:TextBox></td>
							<td class="fh">
								<asp:Button ID="CreateSmiley" CommandName="Create" runat=server width="60"
									Text='<%# ResourceManager.GetString("Create")%>'></asp:Button>
							</td>
						</tr>
						</TABLE>
					</FooterTemplate>
					<ItemTemplate>
						<TR >
							<TD class="f"><%# DataBinder.Eval(Container.DataItem, "SmileyId") %></TD>
							<TD class="fh"><%# DataBinder.Eval(Container.DataItem, "SmileyCode") %></TD>
							<TD class="fh"><%# DataBinder.Eval(Container.DataItem, "SmileyUrl") %></TD>
							<TD class="fh">
								<asp:Image Runat="server" Height=19 Width=19
									AlternateText='<%# DataBinder.Eval(Container.DataItem, "SmileyText") %>'
									ImageUrl='<%# AspNetForums.Components.Globals.ApplicationPath + "/" + DataBinder.Eval(Container.DataItem, "SmileyUrl") %>'/>
							</TD>
							<TD class="fh"><%# DataBinder.Eval(Container.DataItem, "SmileyText") %></TD>
							<TD class="fh">
								<asp:Button id="EditSmiley" CommandName="Edit" runat="server" width="60"
									Text='<%# ResourceManager.GetString("Edit")%>'></asp:Button>
								<asp:Button id="DeleteSmiley" CommandName="Delete" runat="server" width="60"
									Text='<%# ResourceManager.GetString("Delete")%>'></asp:Button>
							</TD>
						</TR>
					</ItemTemplate>
					<EditItemTemplate>
						<TR>
							<TD class="f"></TD>
							<TD class="fh">
								<asp:TextBox ID="txtSmileyCode" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SmileyCode") %>'>
								</asp:TextBox></TD>
							<TD class="fh">
								<asp:TextBox ID="txtSmileyURL" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SmileyUrl") %>'>
								</asp:TextBox></TD>
							<TD class="fh"></TD>
							<TD class="fh">
								<asp:TextBox ID="txtSmileyText" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SmileyText") %>'>
								</asp:TextBox></TD>
							<TD class="fh">
								<asp:Button id="UpdateSmiley" runat="server" CommandName="update" width="60"
									Text='<%# ResourceManager.GetString("Update")%>' ></asp:Button>
								<asp:Button id="CancelSmiley" runat="server" CommandName="cancel" width="60"
									Text='<%# ResourceManager.GetString("Cancel")%>' ></asp:Button></TD>
						</TR>
					</EditItemTemplate>
				</asp:DataList>
			<!--			<asp:Repeater runat="server" ID="SmileyRepeater">
				<HeaderTemplate>
					<table cellspacing="1" cellpadding="3" Class="tableBorder" width="100%">
						<tr>
							<th class="h1" align="left" colspan="3">
								Smiley Management
							</th>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
						<tr>
							<td class="f" width="60%">
								Smiley
							</td>
							<td class="fh" width="20%">
								<asp:Button id="Edit">Edit</asp:Button>
							</td>
							<td class="fh" width="20%">
								<asp:Button id="Delete">Delete</asp:Button>
							</td>
						</tr>
				</ItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
-->
		</form>
<forumsAdmin:Footer runat="server" id="Footer1" />
